package unit5;

import java.util.ArrayList;
import java.util.Date;

public class ArrayListTest {
	public static void main(String[] args) {
//		fill the staff array list with three Employee objects 
		ArrayList<Employee> staff=new ArrayList<>();
		staff.add(new Employee("mike" ,25000,new Date()));
		staff.add(new Employee("Tony" ,55000,new Date()));
		staff.add(new Employee("Alice" ,98000,new Date()));
		
//		raise everyone's salary by 5%
		for(Employee e:staff)
		e.raiseSalary(5);
		
//		print out information about all Employee objects
		for(Employee e:staff)
			System.out.println(e);
	}
}
